package com.attendance.mapper;

import com.attendance.pojo.Admin;
import com.attendance.pojo.Attendance;
import com.attendance.vo.AttendanceVO;
import com.attendance.vo.EntranceVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * 考勤管理Dao层
 *
 **/

@Repository
public interface AttendanceMapper extends BaseMapper<Attendance> {

    List<EntranceVO> findStudentEntranceByWrapper(@Param(Constants.WRAPPER) QueryWrapper<Object> wrapper);

    List<AttendanceVO> findStudentAttendanceByWrapper(@Param(Constants.WRAPPER) QueryWrapper<Object> wrapper);
}
